import { getAction, putAction } from '@/api/manage'
import { serviceApi } from '@/api/common.js'
/**
 * 公共API接口
 */
export const api = {
  editUserBase: serviceApi.auth + '/users/edit-user-base',
  queryBaseUserById: (id) => serviceApi.auth + `/users/${id}`
}

export const editUserBase = params => putAction(api.editUserBase, params)

export const queryBaseUserById = (userId, params) => getAction(api.queryBaseUserById(userId), params)
